package com.emergency.evaluate.domain;

import com.emergency.base.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.models.auth.In;

import javax.persistence.*;

/**
 * 系统打分表，对自动评分所需数据进行预处理的数据表
 * Created by Administrator on 2020/5/8.
 */
@Entity
@Table(name = "eva_autoscore")

public class Autoscore extends BaseEntity{

    //自动评分条目ID
   

    //与自动评分项目捆绑
    @OneToOne (targetEntity=Extract.class, fetch= FetchType.LAZY)
    @JoinColumn(name="Extract_id",referencedColumnName="id")
    private Extract extract;

    @JsonIgnore
    @OneToOne(targetEntity = Auto.class, fetch= FetchType.LAZY)
    @JoinColumn(name = "auto_id", referencedColumnName = "id")
    private Auto auto;
    //初始数据
    private double dataStart;
    //演练结束时的数据
    private double dataEnd;
    //标准数据
    private double dataStandard;

    //数据容许达到的最大值，如果历史训练中都有超过最大值，则更改数据最大值
    private  double datamax;
    //数据容许达到的最小值，如果历史训练中都有超过最大值，则更改数据最大值
    private  double datamin;

    //分数
    private double score;

    //等级
    private String level;


    public Extract getExtract() {
        return extract;
    }

    public void setExtract(Extract extract) {
        this.extract = extract;
    }

    public double getDataStart() {
        return dataStart;
    }

    public void setDataStart(double dataStart) {
        this.dataStart = dataStart;
    }

    public double getDataEnd() {
        return dataEnd;
    }

    public void setDataEnd(double dataEnd) {
        this.dataEnd = dataEnd;
    }

    public double getDataStandard() {
        return dataStandard;
    }

    public void setDataStandard(double dataStandard) {
        this.dataStandard = dataStandard;
    }

    public double getDatamax() {
        return datamax;
    }

    public void setDatamax(double datamax) {
        this.datamax = datamax;
    }

    public double getDatamin() {
        return datamin;
    }

    public void setDatamin(double datamin) {
        this.datamin = datamin;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public Auto getAuto() {
        return auto;
    }

    public void setAuto(Auto auto) {
        this.auto = auto;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }
}

